package com.wohuijituan.whcsmerchant.callback;

import com.google.gson.Gson;
import com.wohuijituan.whcsmerchant.bean.GoodsAddListBean;

import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * 说明：
 * 作者：朱世元
 * 时间： 2016/9/3 9:57
 * 版本：V1.0
 * 修改历史：
 */
public abstract class GoodsAddListCallBack extends Callback<GoodsAddListBean>{
    @Override
    public GoodsAddListBean parseNetworkResponse(Response response, int id) throws Exception {
        String str = response.body().string();
        return new Gson().fromJson(str,GoodsAddListBean.class);
    }


}
